SQL Operations using Python